﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace CourseSystem.Common
{
    public class BaseController : Controller
    {
        public void SetAlertMsg(string msg, bool tempDate = false)
        {
            if (tempDate)
                TempData["AlertMsg"] = msg;
            else
                ViewData["AlertMsg"] = msg;
        }

        public void SetHighLineMsg(string msg)
        {
            ViewData["Msg"] = msg;
        }

        public ViewResult NotFound()
        {
            return View("NotFound");
        }
    }
}
